import java.util.Comparator;
import java.util.PriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 74646
 * Date: 2022-03-27
 * Time: 0:02
 */
//class OuterClass{
//    public void func(){
//        //本地内部类
//        class InnerClass{ }
//    }
//}


class A{
    public void test(){
        System.out.println("test()方法");
    }
}
public class TestDemo3 {
    PriorityQueue<Integer> priorityQueue = new PriorityQueue<>(new Comparator<Integer>() {
        @Override
        public int compare(Integer o1, Integer o2) {
            return o1-o2;
        }
    });

    public static void main(String[] args) {
        new A(){
            @Override
            public void test() {
                System.out.println("重写test方法");
            }
        }.test();
    }
}
